﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Empresa.Sistema.Presentacion
{
    public partial class frmPrincipal : Form
    {
        public frmPrincipal()
        {
            InitializeComponent();
        }
                
        private void salirToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void autoresToolStripMenuItem_Click(object sender, EventArgs e)
        {
                   

            mntAutores.DefInstance.MdiParent = this;
            mntAutores.DefInstance.Show();   
         
            mntAutores.DefInstance.BringToFront();
            


        }

        private void paisesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            
            mntPaises.DefInstance.MdiParent = this;
            mntPaises.DefInstance.Show();

            mntPaises.DefInstance.BringToFront();

        }

        private void idiomasToolStripMenuItem_Click(object sender, EventArgs e)
        {
           
            mntIdiomas.DefInstance.MdiParent = this;
            mntIdiomas.DefInstance.Show();

            mntIdiomas.DefInstance.BringToFront();
        }

        private void generosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            
            mntGeneros.DefInstance.MdiParent = this;
            mntGeneros.DefInstance.Show();

            mntGeneros.DefInstance.BringToFront();

        }

        private void cargosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            
            mntCargos.DefInstance.MdiParent = this;
            mntCargos.DefInstance.Show();

            mntCargos.DefInstance.BringToFront();

        }

        private void prestamosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            mntPrestamos.DefInstance.MdiParent = this;
            mntPrestamos.DefInstance.Show();

            mntPrestamos.DefInstance.BringToFront();

        }

        private void personasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            mntPersonas.DefInstance.MdiParent = this;
            mntPersonas.DefInstance.Show();

            mntPersonas.DefInstance.BringToFront();
        }

        private void librosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            mntLibros.DefInstance.MdiParent = this;
            mntLibros.DefInstance.Show();

            mntLibros.DefInstance.BringToFront();
        }

        private void editorialesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            mntEditoriales.DefInstance.MdiParent = this;
            mntEditoriales.DefInstance.Show();

            mntEditoriales.DefInstance.BringToFront();
        }

        private void usuariosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            mntUsuarios.DefInstance.MdiParent = this;
            mntUsuarios.DefInstance.Show();

            mntUsuarios.DefInstance.BringToFront();
        }

        private void frmPrincipal_FormClosing(object sender, FormClosingEventArgs e)
        {
            Application.Exit();
        }

        private void autoresToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            rptAutores.DefInstance.MdiParent = this;
            rptAutores.DefInstance.Show();

            rptAutores.DefInstance.BringToFront();
        }

        private void prestamoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            mntPrestamos.DefInstance.MdiParent = this;
            mntPrestamos.DefInstance.Show();

            mntPrestamos.DefInstance.BringToFront();
        }

      
    }
}
